import request from '@/utils/request';
import { query } from './types';

// 获取数据概览
export function getdataView(params: query) {
  return request({
    url: '/overview/dataView',
    method: 'GET',
    params
  });
}
// 获取电站状态
export function getstationState() {
  return request({
    url: '/overview/stationState',
    method: 'GET'
  });
}
// 获取故障列表
export function getfaultList(params: query) {
  return request({
    url: '/overview/faultList',
    method: 'GET',
    params
  });
}
// 获取电站列表
// export function getstationList(params: query) {
//   return request({
//     url: '/overview/stationList',
//     method: 'GET',
//     params
//   });
// }
export function getstationList(params: query) {
  return request({
    url: '/overview/list',
    method: 'GET',
    params
  });
}
// 获取电站列表
export function getSimpleStationList(params: query) {
  return request({
    url: '/overview/search',
    method: 'GET',
    params
  });
}
// 电站地址省市级
export function getAdds(params: query) {
  return request({
    url: '/stationBoard/region',
    method: 'GET',
    params
  });
}

// 电站国家
export function getCountrys(params: query) {
  return request({
    url: '/system/region/country',
    method: 'GET',
    params
  });
}

//
// 获取电站的经纬度
export function getAllStation(params: any) {
  return request({
    url: '/overview/allStation',
    method: 'GET',
    params
  });
}
